/**
 * getElementById
 * getElementsByTagName
 * setAttribute
 * getAttribute
 */
alert("测试开始");
var ulPurchase = document.getElementById("ul_purchase");
var ulPurchase1 = document.getElementsByTagName("ul");
ulPurchase.setAttribute("title", "purchase");
var title = ulPurchase.getAttribute("title");
var assert = ulPurchase === ulPurchase1[0] && title === "purchase";
alert(assert);
